|
ata6570 2.2.0
|
Functions | |
| void | ata6570_cfg_setup (ata6570_cfg_t *cfg) |
| Config Object Initialization function. | |
| ATA6570_RETVAL | ata6570_init (ata6570_t *ctx, ata6570_cfg_t *cfg) |
| Initialization function. | |
| void | ata6570_generic_transfer (ata6570_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
| Generic transfer function. | |
| void | ata6570_generic_write (ata6570_t *ctx, char *data_buf, uint16_t len) |
| Generic write function. | |
| int32_t | ata6570_generic_read (ata6570_t *ctx, char *data_buf, uint16_t max_len) |
| Generic read function. | |
| void | ata6570_write_reg (ata6570_t *ctx, const uint8_t address, uint8_t input) |
| Write Register. | |
| uint8_t | ata6570_read_reg (ata6570_t *ctx, const uint8_t address) |
| Read Register. | |
| void ata6570_cfg_setup | ( | ata6570_cfg_t * | cfg | ) |
Config Object Initialization function.
| cfg | Click configuration structure. |
@description This function initializes Click configuration structure to init state.
| int32_t ata6570_generic_read | ( | ata6570_t * | ctx, |
| char * | data_buf, | ||
| uint16_t | max_len ) |
Generic read function.
| ata6570 | Click object. |
| data_buf | Data buffer for read data. |
| max_len | The maximum length of data that can be read. |
| void ata6570_generic_transfer | ( | ata6570_t * | ctx, |
| uint8_t * | wr_buf, | ||
| uint16_t | wr_len, | ||
| uint8_t * | rd_buf, | ||
| uint16_t | rd_len ) |
Generic transfer function.
| ctx | Click object. |
| wr_buf | Write data buffer |
| wr_len | Number of byte in write data buffer |
| rd_buf | Read data buffer |
| rd_len | Number of byte in read data buffer |
@description Generic SPI transfer, for sending and receiving packages
| void ata6570_generic_write | ( | ata6570_t * | ctx, |
| char * | data_buf, | ||
| uint16_t | len ) |
Generic write function.
| ata6570 | Click object. |
| data_buf | Data buffer for sends. |
| len | Number of bytes for sends. |
| ATA6570_RETVAL ata6570_init | ( | ata6570_t * | ctx, |
| ata6570_cfg_t * | cfg ) |
Initialization function.
| ctx | Click object. |
| cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this Click.
| uint8_t ata6570_read_reg | ( | ata6570_t * | ctx, |
| const uint8_t | address ) |
Read Register.
| ctx | Click object. |
| address | - register address |
@description This function used write register.
| void ata6570_write_reg | ( | ata6570_t * | ctx, |
| const uint8_t | address, | ||
| uint8_t | input ) |
Write Register.
| ctx | Click object. |
| address | - register address |
| input | - register data to write |
@description This function used write register.